home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 June / PCpro_2006_06.ISO / files / freeware / openvip.exe / {app} / list_plugins.py < prev    next >
Encoding:
Python Source  |  2003-05-24  |  1.1 KB  |  40 lines

  1. #!/usr/bin/env python
  2.  
  3. #
  4. # This file is part of OpenVIP (http://openvip.sourceforge.net)
  5. #
  6. # Copyright (C) 2002-2003
  7. # Michal Dvorak, Jiri Sedlar, Antonin Slavik, Vaclav Slavik, Jozef Smizansky
  8. #
  9. # This program is licensed under GNU General Public License version 2;
  10. # see file COPYING in the top level directory for details.
  11. #
  12. # $Id: list_plugins.py,v 1.4 2003/05/24 22:17:23 vaclavslavik Exp $
  13. #
  14.  
  15. #
  16. # Lists all registered OpenVIP plugins
  17. #
  18.  
  19. import openvip
  20.  
  21. def printList(lib, type, desc):
  22.     plugins = lib.enum_plugins(type)
  23.     if len(plugins) == 0:
  24.         print "No %s vailable" % desc
  25.     else:
  26.         print "%i %s available:" % (len(plugins), desc)
  27.         for p in plugins:
  28.             print "    %-30s  (%s)" % (p.description, p.name)
  29.     print ""
  30.  
  31. lib = openvip.Library()
  32.  
  33. printList(lib, openvip.PLUGIN_VIDEO_FILTER, "video filters")
  34. printList(lib, openvip.PLUGIN_AUDIO_FILTER, "audio filters")
  35. printList(lib, openvip.PLUGIN_VIDEO_TRANSITION, "video transitions")
  36. printList(lib, openvip.PLUGIN_AUDIO_TRANSITION, "audio transitions")
  37. printList(lib, openvip.PLUGIN_INPUT, "input formats")
  38. printList(lib, openvip.PLUGIN_OUTPUT, "output formats")
  39.  
  40.